An implementation of the [SHA-1][1] cryptographic hash algorithm.
# Usage
```rust
# #[macro_use] extern crate hex_literal;
# extern crate sha1;
# fn main() {
use sha1::{Sha1, Digest};
// create a Sha1 object
let mut hasher = Sha1::new();
// process input message
hasher.input(b"hello world");
// acquire hash digest in the form of GenericArray,
// which in this case is equivalent to [u8; 20]
let result = hasher.result();
assert_eq!(result[..], hex!("2aae6c35c94fcfb415dbe95f408b9ce91ee846ed"));
# }
```
Also see [RustCrypto/hashes][2] readme.
[1]: https://en.wikipedia.org/wiki/SHA-1
[2]: https://github.com/RustCrypto/hashes